/**
 * 首页接口
 * */

const Router = require('express');
const router = new Router();

// 引入业务逻辑
const indexDis = require("../../../business/client/indexDis");

// 获取首页轮播图和客服二维码
router.get("/", (req, res) => {
  indexDis.allImg(req, res);
})

// 放入纸条
router.post("/put_scrip", (req, res) => {
    indexDis.putScrip(req, res);
})

// 抽取纸条
router.get("/take_scrip", (req, res) => {
    indexDis.takeScrip(req ,res);
})

module.exports = () => {
    return router
}